<!DOCTYPE html>
<html lang="en">
<head>

</head>

<body>
    <div id="div1">
        <video id="video1" controls
               src="http://vali-dns.cp31.ott.cibntv.net/677373445D04071AC77425A03/03000B13005F61DD08FD8B1406C1F8717BA068-C269-4B75-8E87-C3C949A47F46.mp4?ccode=0502&duration=90&expire=18000&psid=46b00778818ab2bff8c0f3a70d03e03544c92&ups_client_netip=0e6b9fd8&ups_ts=1604567919&ups_userid=&utid=jfgZGCCUeRQCAX1VznYXOfGm&vid=XNDQ1Nzg0ODUyNA&vkey=B017841f014e32453530398a35d97c2f2&eo=0&rid=2000000029E80EAC2176A1254D0AA269A5F174E302000000&bc=2&dre=u17&si=45&dst=1">
        </video>
    </div>
    <div id="div2" style="display: none">
        <video id="video2" controls
               src="http://vali-dns.cp31.ott.cibntv.net/67752CE69DA3E719EDD1F2C15/03000B13035F61DD08FD8B1406C1F8717BA068-C269-4B75-8E87-C3C949A47F46.mp4?ccode=0502&duration=198&expire=18000&psid=46b00778818ab2bff8c0f3a70d03e03544c92&ups_client_netip=0e6b9fd8&ups_ts=1604567919&ups_userid=&utid=jfgZGCCUeRQCAX1VznYXOfGm&vid=XNDQ1Nzg0ODUyNA&vkey=B4ea1ebefc9defda0571ac2681622fd7d&eo=0&rid=200000000A4B28C3B26F88664E06F8A7E7123DB202000000&bc=2&dre=u17&si=45&dst=1">
        </video>
    </div>
<script>
   let video1 = document.getElementById("video1");
   video1.addEventListener("ended",function () {
        let d1 = document.getElementById("div1");
        let d2 = document.getElementById("div2");
       d1.style.display="none";
       d2.style.display="block";
       let video2 = document.getElementById("video2");
       video2.play();
   })
</script>
</body>
</html>